package cn.analysis.common;

/** 封装统一返回信息 */
public enum ResultCode {
    SUCCESS(200,"SUCCESS","请求成功"),
    FAILURE(0,"FAILURE","请求失败"),
    NOT_FOUND(404, "NOT_FOUND", "资源不存在");

    private Integer code; // 标识
    private String msg; // 返回消息
    private String remark; // 备注

    ResultCode(Integer code, String msg, String remark) {
        this.code = code;
        this.msg = msg;
        this.remark = remark;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
